const Address = function (id, provinceName, cityName, districtName, addressName, zipCode, name, phone) {
  var that = {};
  that.id = id;
  that.province = provinceName;
  that.city = cityName;
  that.district = districtName;
  that.address = addressName;
  that.zipCode = zipCode;
  that.name = name;
  that.phone = phone;
  that.fullAddress = that.province + that.city + that.district + that.address;
  that.getData = function () {
    return {id: that.id, name: that.name, tel: that.phone, address: that.fullAddress}
  }
  return that;
};
module.exports = Address;
